package com.baidu.echarts;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

public class Tooltip {
    @JsonProperty(index = 1)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String trigger;

    @JsonProperty(index = 2)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String formatter;

    @JsonProperty(index = 3)
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private AxisPointer axisPointer;

    public String getTrigger() {
        return trigger;
    }

    public Tooltip setTrigger(String trigger) {
        this.trigger = trigger;
        return this;
    }

    public String getFormatter() {
        return formatter;
    }

    public Tooltip setFormatter(String formatter) {
        this.formatter = formatter;
        return  this;
    }

    public AxisPointer getAxisPointer() {
        return axisPointer;
    }

    public void setAxisPointer(AxisPointer axisPointer) {
        this.axisPointer = axisPointer;
    }
    public AxisPointer buildAxisPointer(){
        this.axisPointer = new AxisPointer();
        return this.axisPointer;
    }
}
